package com.zeei.gis.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.zeei.common.annotation.SysLog;
import com.zeei.common.controller.BasicController;
import com.zeei.common.enums.LogType;
import com.zeei.common.vo.ResultRowsVO;
import com.zeei.gis.service.TradeCodeGisService;
import com.zeei.gis.vo.TradeCodeGisVO;

/**
 * @类型名称：TradeCodeGisController
 * @类型描述：行业信息查询
 * @功能描述：行业信息查询
 * @创建人：jiangqingpeng
 */
@Controller
@RequestMapping("/gis/tradeCode")
public class TradeCodeGisController extends BasicController{

	@Autowired
	TradeCodeGisService tradeCodeGisService;
	
	@RequestMapping(value="/list", method=RequestMethod.POST)
	@ResponseBody
	@SysLog(text = "行业分级查询", type = LogType.View)
	public ResultRowsVO<TradeCodeGisVO>queryTradeCodeList() {
		List<TradeCodeGisVO> rootList = tradeCodeGisService.queryTradeCodeList();
		return this.createResultRowsVO(rootList, true, "",(int)rootList.size());
	}
}
